package com.zsc.shixun.model.usermanage;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 修改用户VO
 * </p>
 *
 * @author ZWYZY
 * @since 2020/6/18
 */
@Data
public class UserManageUpdateVO {
    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    @NotNull(message = "必须填id")
//    @NotBlank(message = "id不能为空")
    private Long id;

    @ApiModelProperty(value = "用户名")
    @NotNull(message = "必须填用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;


    @ApiModelProperty(value = "学历")
    @NotNull(message = "必须填学历")
    @NotBlank(message = "学历不能为空")
    private String education;


    @ApiModelProperty(value = "学校")
    @NotNull(message = "必须填学校")
    @NotBlank(message = "学校不能为空")
    private String school;

    @ApiModelProperty(value = "个人简介")
    private String content;

    @ApiModelProperty(value = "角色id，关联b_role.id")
    @NotNull(message = "必须填角色")
//    @NotBlank(message = "角色不能为空")
    private Long roleId;//1为管理员，2为普通用户

}
